package com.fbs.controller;

import com.fbs.service.TbMainService;
import com.fbs.service.WorkService;
import com.fbs.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("main")
public class MainController {
    @Autowired
    private TbMainService tbMainService;
    @Autowired
    private WorkService workService;
    @RequestMapping("main")
    public Result findAll(){
        return tbMainService.findAll();
    }
    @RequestMapping("work")
    public Result findByall(){
        return workService.findByall();
    }
}
